package com.example.yls.demoa;

import android.os.Binder;

/**
 * Created by yls on 2018/12/17.
 */

public class MyBinder extends Binder {

        public int add(int a,int b){
            return a+b;
        }
    public String upcasp(String str){

            return str.toUpperCase();
    }
    public StringBuffer result(String str){
        StringBuffer buffer=new StringBuffer();
        String str1[]=str.split(" ");
        for(String word:str1){
            StringBuffer buffer1=new StringBuffer(word);

            buffer.append(buffer1.reverse()+" ");
        }
        return buffer;
    }
}
